home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / utils1 / a_lock12.arj / A-LOCK.DOC < prev    next >
Text File  |  1994-03-07  |  6KB  |  155 lines

  1.                         ************************        
  2.                         *      A-Lock v1.2     *
  3.                         *    by Dario Rosati   *
  4.                         ************************
  5.  
  6. LEGAL STUFF
  7.  
  8. This program is absolutely freeware, you can do what you want with it,
  9. except gaining money by selling it to someone.
  10. However, I strongly raccomend to read this entire Doc file, because i
  11. take NO RESPONSABILITY if you lock your system and can't get back, thus
  12. loosing your day's work.
  13. If you want to contact me, for flames, bugs, chat or whatsoever, see the
  14. section AUTHOR.
  15.  
  16. INTRODUCTION
  17.  
  18. Do you have a young brother, who seems only to wait the moment you leave
  19. your Amy alone just for wreak havoc trough your harddisk or your system?
  20. Have you lost your 4000's keys?
  21. Are you using your Amy in a public place for a demonstration?
  22. You lucky have a local net of Amy, and simply want to descourage other
  23. peoples from using your machine while you are away for a while?
  24. If so, A-Lock is for you.
  25. It is based on a version of X-Lock running on Unix machines in my
  26. university lab.
  27.  
  28. REQUIREMENTS
  29.  
  30. You need the incredibile amount of 12k ram and OS 2.04 to run this program.
  31. CPU Doesn't matter.
  32. Ah, sorry, pearl.font also needed (I like them :)).
  33.  
  34. INSTRUCTIONS
  35.  
  36. It's not so difficult, I mean.
  37. First, and MOST IMPORTANT, take a look at the tooltypes in the program's
  38. icon.
  39. The first is PASSWORD, and you MUST fill it with a LOWERCASE password.
  40. The reason is explained in the technical section.
  41. The second is AUTOLOCK; setting it to YES will cause A-Lock to
  42. automatically lock when launched.
  43. This is *VERY* useful (thanks to Jochen Becher for the suggestion)
  44. because now you can place A-Lock in the WB-Startup drawer with the
  45. tooltypes DONOTWAIT and STARTPRI, and so the system will boot LOCKED!
  46. Thus, even toggling power will prevent stupid people to access your
  47. computer!
  48. If for example you have the opportunity to lock your drives, there is
  49. * NO WAY * to access your computer now.
  50. The only method is to boot from a floppy disk.
  51. Forgetting the password in autolock mode can now cause some troubles, so be 
  52. careful with it.
  53.  
  54. Then, you can simply doubleclick your icon and a small window will appear.
  55. Now you may:
  56. -Quit in the usual way (Upper left gadget of the window...)
  57. -Lock the system by pressing the "Lock" gadget
  58. -Have a small info requester by pressing "About".
  59.  
  60. If you lock the system, you'll notice some small :) things to happen...
  61. The mouse will appear like a closed lock, and left mouse button will act
  62. like the right.
  63. Naaa, only? Yes, I threat you to do something different than typing your
  64. password, cause you'll soon realize (i hope :)) that you can't no longer
  65. interact with the system.
  66. After typing the password, you will hear an acknowledgment beep and then
  67. the situation will return as before.
  68.  
  69. Now you are probably thinking "Such programs still exists, so why...", and
  70. I answer that all I saw in the past had four drawbacks:
  71.  
  72. 1) Too complicated
  73. 2) Too big
  74. 3) Doesn't allow multitasking when locked
  75. 4) Doesn't work on my Amiga 4000/030. 
  76.  
  77. A-Lock is simple, allows running tasks to continue their works and runs
  78. on my 4000/30 :).
  79.  
  80. TECHNICAL SECTION
  81.  
  82. This program was a four-days work on my 4000/30 with SAS 6.5 and DevPac
  83. 3.04. Yes yes, I had to write a part in assembly (the most skilled of you 
  84. have probably still realised WHAT part... or not? ;)).
  85. I wrote this program mainly to learn how device handlers and events work.
  86. In fact, when the user locks, the program sets up a high-priority assembly
  87. handler in the input-handlers queue.
  88. This handler simply trashes all leftmouse events and all key-related
  89. qualifiers (such as IEQUALIFIER_RSHIFT --> this is the reason why you MUST
  90. specify a LOWERCASE PASSWORD in the PASSWORD tooltype...), preventing the
  91. user from accessing to other screens, other windows, menus, gadgets, icons,
  92. commodities and so on. As ulterior security the programs reacts to 
  93. IDCMP_INACTIVEWINDOW bringing the screen to front and making its own 
  94. window active; this is needed to prevent AUTOPOINT features of some 
  95. commodities. Using A-Lock when such feature is present  causes a hugly 
  96. effect on the pointer and the screen title, but the situation remains equally 
  97. under control, don't worry.
  98. I have not yet discovered any weak point, except the fact that the password
  99. stays in the icon (but you can change it when you want, and there is no way
  100. to read it when the program is locked).
  101. The handler is written in assembly because there can be many programs
  102. waiting for events and you must handle them as fast as possible to prevent
  103. the loss of someone.
  104. If you are interested in the source code, contact me in one of the ways
  105. described in the section below.
  106.  
  107. THE AUTHOR
  108.  
  109. I can be reached for bug reports, ideas, congratulations (:)), chats and all
  110. what you want in three ways:
  111.  
  112. - E-Mail at rosati@ghost.dsi.unimi.it
  113. - BBS: +39-[0]2-27201236 or 27200576
  114. - Normal Mail:
  115.  
  116.                         Dario Rosati
  117.                         Piazza Piola 11
  118.                         20133 Milano - Italy
  119.  
  120.  
  121. HISTORY
  122.  
  123. 10-Jan-94: First release
  124.  
  125. 04-Feb-94: Version 1.1
  126.  
  127.            - Forgot to release some memory
  128.            - Forgot to lower the priority after unlocking
  129.            
  130.            - Instead of raising the priority at the fixed value
  131.              of 21, now A-Lock checks the priority of the input.device
  132.              and then raises his priority to one unit more than them.
  133.              This allow A-Lock to run in almost any situation.
  134.  
  135. 07-Mar-94: Version 1.2
  136.  
  137.            - Added AUTOLOCK feature, making A-Lock more useful.
  138.              Now A-Lock can be placed into WBStartup drawer,
  139.              if the user wants to lock the system on startup.
  140.  
  141. TO DO
  142.  
  143. - Allow opening on public screens
  144. - Password file encription
  145. - Timeout autolocking (also suggested by Jochen Becker)
  146.  
  147. GREETINGS
  148.  
  149. - Special greetings to Andrea Marenghi, without whom I probably
  150.   had never learned C language (Asm rulez ;))
  151. - Also greetings to Dario Maggiorini, who gave me the idea
  152. - Jason L. Tatum, who gave me an hint
  153. - And to Kichkaha & Willow of Skandal.
  154.  
  155. Have fun! And sorry for my scholastic english!